package com.easthome.service;

import com.easthome.entity.Goods;
import com.easthome.pojo.vo.CartItemVO;
import com.easthome.pojo.vo.CartVO;

/**
 * @author cxiaoy
 * @Date 2022/10/20 15:42
 */
public interface CartService {
    int addToCart(Goods goods, Integer userId);

    CartVO getCart(Integer userId);

    int updateCart(Integer userId, Integer goodsId, Integer amount);

    int removeCartItem(Integer userId, Integer goodsId);

    CartItemVO getCartItemVo(Integer userId,Integer goodsId);
}
